Repository navigation
Conversation
Assisted-by: OpenAI Codex
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
Traversalexample checksitem.startswith('.')while walkingPath('.'). Every child path then starts with./(or.\on Windows), so the example skips ordinary directories along with hidden ones. With an absolute starting path, the predicate can instead try to descend into files.Check
item.is_dir()anditem.namein the example. Build a temporary tree in the doctest so it demonstrates both visiting an ordinary directory's file and skipping a hidden directory's contents, without depending on the checkout's contents. This changes the documentation example only; traversal behavior is unchanged.Validation on Windows / Python 3.13:
tox -e py313ran the suite, formatting, and type checks: 146 passed, 7 skipped, and 12 failures/errors, all at symbolic-link creation withWinError 1314(the local session lacks that privilege). Formatting and mypy passed.tox -e docs: the Sphinx build with warnings treated as errors and sphinx-lint both passed.AI disclosure: OpenAI Codex prepared this change and ran the local validation.